package contaKM2012;

import java.io.IOException;

import exceptions.InconsistentValueException;
import interfaces.IContaKm;

public class ContaKmFactory {

	protected String mode = local;

	public static final String local = "local";

	protected static ContaKmFactory getFactory(String mode) {
		return new ContaKmFactory(mode);
	}

	public ContaKmFactory(String mode) {
		this.mode = mode;
	}

	public IContaKm makeContaKm() throws InconsistentValueException,
			IOException {
		if (mode.equals(local)) {
			return new ContaKm();
		} else
			return null;
	}

}
